import React from 'react'

export default function Hooks() {
    let [like,setlike]=React.useState(true)
    let eat = ()=>{
        setlike(!like)
    }
  return (
    <div>
        <span >你想吃雨吗   {like?   "想":   "不想"}</span>
        <button style={{display:"block",margin:"auto"}} onClick={eat}>想吗</button>
    </div>
  )
}
